<template>
  <div id="video" :style="{
        // borderRadius:styles.circle+'px',
        marginTop:styles.marginTop+'px',
       marginBottom:styles.marginBottom+'px',
        marginLeft:styles.marginLR+'px',
        marginRight:styles.marginLR+'px',}">
    <div class="divtitle">
      <p class="titles">{{styles.title}}</p>
<!--      <div class="more">更多></div>-->
    </div>
    <div class="mai">
      <div class="playbg">
<!--        <el-image style="width: 100%;height: 170px;" :src="styles.upLoad1.img" fit="fit" v-if="styles.upLoad1.img"></el-image>-->
<!--        <el-image style="width: 100%;height: 170px;" :src="img" fit="fit" v-else></el-image>-->

        <video  style="width: 100%;height: 170px;" :src="styles.upLoad1.img" v-if="styles.upLoad1.img && styles.type!=2 && styles.type!=3"></video>
        <el-image style="width: 100%;height: 170px;" :src="styles.upLoad2.img" fit="fit" v-else-if="styles.upLoad2.img && styles.type==2 || styles.type==3"></el-image>
        <el-image style="width: 100%;height: 170px;" :src="img" fit="fit" v-else></el-image>
        <span class="yuan"></span>
        <span class="yuan2 el-icon-caret-right"  style="font-size:40px"></span>
      </div>
    </div>
  </div>
</template>
<script>
import { mapState, mapMutations } from "vuex";
export default {
  name: "storeInformation",
  data() {
    return {
      img: require("../../../assets/img/blank.png"),
    };
  },
  props: ["styles"],
};
</script>
<style lang='less' scoped>
#video{
  background-color: #fff;
  padding: 10px;
  .divtitle{
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .titles {
    font-size: 16px;
    margin-left: 10px;
    font-weight: bold;
  }
  .more{
    font-size: 12px;
    color: #999;
  }
  .yuan {
    position: absolute;
    top: 116px;
    left: 163px;
    display: inline-block;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: #000;
    //margin: 0px 153px;
    opacity: .4;
  }
  .yuan2{
    position: absolute;
    top: 121px;
    left: 168px;
    color: #fff;
    opacity: .2;
  }
}
</style>
